const crypto = require('crypto');

const encryptor = {
    encrypt(source,salt){
        return crypto.createHmac( 'sha1' , salt )
                     .update( source )
                     .digest( 'hex' );
    }
}

module.exports = encryptor ;